{% extends "base.html" %}
{% block title %}
首页
{% endblock %}
{% block main %}
<div class="col-10 offset-1">
    <div class="card card-primary">
        <div class="card-header">
            <h3 class="card-title">修改密码</h3>
        </div>
        <form method="post" id="passForm" class="form-horizontal">
            {% csrf_token %}
            <div class="card-body">
                <div class="form-group">
                    <label for="oldPass">原始密码</label>
                    <input class="form-control" type="password" id="oldPass" name="old_password" placeholder="请输入账号原始密码" required>
                </div>
                <div class="form-group">
                    <label for="newPass">新密码</label>
                    <input class="form-control" type="password" id="newPass" name="new_password1" placeholder="请输入新的密码" required>
                </div>
                <div class="form-group">
                    <label for="conPass">确认密码</label>
                    <input class="form-control" type="password" id="conPass" name="new_password2" placeholder="请再次输入密码" required>
                </div>
            </div>
            <!-- /.card-body -->
            <div class="card-footer">
                <div class="row">
                    <div class="col-8 offset-2">
                        <button type="submit" class="btn btn-primary btn-block">立即修改</button>
                    </div>
                </div>
            </div>
            <!-- /.card-footer -->
        </form>
    </div>
</div>
{% endblock %}

{% block script %}
<script src="/static/dist/js/user-password.js"></script>
{% endblock %}
